import request from '../../service/index.js'

export const getMyCoupon = data => {
	return request({
		path: '/circle/user/voucher_record',
		method: 'POST',
		data,
		module: 'lifeCircle'
	})
}
export const getMyGroup = data => {
	return request({
		path: '/circle/user/organization',
		method: 'POST',
		data,
		module: 'lifeCircle'
	})
}
export const getMyCollection = data => {
	return request({
		path: '/circle/user/collection',
		method: 'POST',
		data,
		module: 'lifeCircle'
	})
}
export const getMyOrder = data => {
	return request({
		path: '/circle/user/order',
		method: 'POST',
		data,
		module: 'lifeCircle'
	})
}
export const getMyMessage = data => {
	return request({
		path: '/circle/user/message',
		method: 'POST',
		data,
		module: 'lifeCircle'
	})
}
export const addFeedback = data => {
	return request({
		path: '/circle/user/feedback',
		method: 'POST',
		data,
		module: 'lifeCircle'
	})
}
export const setMyRecommend = data => {
	return request({
		path: '/circle/user/recommend',
		method: 'POST',
		data,
		module: 'lifeCircle'
	})
}
export const getMyOrderDetail = data => {
	return request({
		path: '/circle/user/order_desc',
		method: 'POST',
		data,
		module: 'lifeCircle'
	})
}
export const cancelMyOrder = data => {
	return request({
		path: '/circle/user/cancel_order',
		method: 'POST',
		data,
		module: 'lifeCircle'
	})
}
export const refund = data => {
	return request({
		path: '/circle/order/refund',
		method: 'POST',
		data,
		module: 'lifeCircle'
	})
}
export const addEvaluate = data => {
	return request({
		path: '/circle/user/add_store_evaluate',
		method: 'POST',
		data,
		module: 'lifeCircle'
	})
}
export const payment = data => {
	return request({
		path: '/circle/order/insert_order',
		method: 'POST',
		data,
		module: 'lifeCircle'
	})
}
export const joinUs = data => {
	return request({
		path: '/circle/user/join_us',
		method: 'POST',
		data,
		module: 'lifeCircle'
	})
}
export const getUsedCar = data => {
	return request({
		path: '/api/seCar/getMySell',
		method: 'GET',
		data,
		module: 'car'
	})
}
export const cancelUsedCar = data => {
	return request({
		path: '/api/seCar/delMySell',
		method: 'GET',
		data,
		module: 'car'
	})
}
export const updateUsedCar = data => {
	return request({
		path: '/api/seCar/setToNew',
		method: 'POST',
		data,
		module: 'car'
	})
}
export const addRecommend = data => {
	return request({
		path: '/circle/user/recommend',
		method: 'POST',
		data,
		module: 'lifeCircle'
	})
}

export const sendMessage = data =>{
	return request({
		path: '/api/sms/sendBank',
		method:'GET',
		data,
		module:'car'
	})
} 

export const chekCode = data =>{
	return request({
		path:'/api/sms/checkBank',
		method:'GET',
		data,
		module:'car'
	})
}

export const createQRCode = data =>{
	return request({
		path: '/api/index/code',
		method:'GET',
		data,
		module:'car'
	})
}

export const getTeamList = data =>{
	return request({
		path:'/api/index/myTeam',
		method:'GET',
		data,
		module:'car'
	})
}

/**
 * 电话列表
 */
export const getPhoneList = data =>{
	return request({
		path:'/api/index/platPhone',
		method:'GET',
		data,
		module:'car'
	})
}